package com.wei.ssm.service;

import com.wei.ssm.domain.Role;
import com.wei.ssm.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService extends UserDetailsService {

    List<UserInfo> findAll() throws Exception;

    void save(UserInfo user);

    UserInfo findById(int id);

    List<Role> findUserByIdAndAllRole(int id);

    void addRoleToUser(int userId, int[] ids);
}
